package com.ehome.poct.terminal.mapping;

import com.ehome.poct.core.api.dto.check.gold.TestConfPoctStripTypeDTO;
import com.ehome.poct.core.api.vo.order.DetectionVO;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;

import java.util.List;

/**
 * @author muqiu
 * @since 2022/07/02 17:37
 **/
@Mapper(componentModel = "spring")
public interface TestConfStripMapping {

    List<DetectionVO> to(List<TestConfPoctStripTypeDTO> detections);

    @Mapping(target = "stripTypeCode",source = "typeCode")
    @Mapping(target = "testConfStripName",source = "name")
    @Mapping(target = "testConfigDisplayName",source = "fullName")
    DetectionVO to(TestConfPoctStripTypeDTO detections);
}
